<div class="content_title"><span><strong>Đăng ký tài khoản</strong></span></div>
<div class="cleardiv"></div><div class="cleardiv"></div>
<?php
if ($this->errorFlag) {
    ?>
<div style="background-color: gray">
    <div class="cleardiv"></div><div class="cleardiv"></div>
        <?php if ($this->errorFullname): ?><span style="padding-left: 10px"><?=$this->errorFullname?></span><br/>  <?php endif; ?>
        <?php if ($this->errorUsername): ?><span style="padding-left: 10px"><?=$this->errorUsername?></span><br/>  <?php endif; ?>
        <?php if ($this->errorPassword): ?><span style="padding-left: 10px"><?=$this->errorPassword?></span><br/>  <?php endif; ?>
        <?php if ($this->errorEmail): ?><span style="padding-left: 10px"><?=$this->errorEmail?></span><br/>  <?php endif; ?>
        <?php if ($this->errorBirthday): ?><span style="padding-left: 10px"><?=$this->errorBirthday?></span><br/>  <?php endif; ?>
        <?php if ($this->errorCaptchar): ?><span style="padding-left: 10px"><?=$this->errorCaptchar?></span><br/>  <?php endif; ?>
    <div class="cleardiv"></div><div class="cleardiv"></div>
</div>
    <?php
}
?>
<form name="frmRegister" action="" method="post">
    <div class="contact_form">
        <label class="contact_form">Họ và tên</label>
        <input type="text" id="fullname" name="fullname" value="<?=$_POST['fullname']?>" class="contact_input" maxlength="100" />(<font color="red">*</font>)
        <div class="cleardiv"></div>
        <label class="contact_form">Tên tài khoản</label>
        <input autocomplete="off" type="text" id="username" name="username" value="<?=$_POST['username']?>" class="contact_input" maxlength="50"/>(<font color="red">*</font>)
        <div class="cleardiv"></div>
        <label class="contact_form">Mật khẩu</label>
        <input type="password" id="password" name="password" class="contact_input" maxlength="100" />(<font color="red">*</font>)
        <div class="cleardiv"></div>
        <label class="contact_form">Nhập lại mật khẩu</label>
        <input type="password" id="repassword" name="repassword" class="contact_input" maxlength="100" />(<font color="red">*</font>)
        <div class="cleardiv"></div>
        <label class="contact_form">Email</label>
        <input type="text" id="email" name="email" value="<?=$_POST['email']?>" class="contact_input" maxlength="100"/>(<font color="red">*</font>)
        <div class="cleardiv"></div>
        <label class="contact_form">Ngày sinh</label>
        <select id="dobday" name="dobday">
            <option value="">Chon ngay</option>
            <?php
            for ($i = 1;$i < 32;$i++) {
                ?>
            <option value="<?=$i?>"><?=$i?></option>
                <?php
            }
            ?>
        </select>
        <select id="dobmonth" name="dobmonth">
            <option value="">Chon thang</option>
            <?php
            for ($i = 1;$i < 13;$i++) {
                ?>
            <option value="<?=$i?>"><?=$i?></option>
                <?php
            }
            ?>
        </select>
        <select id="dobyear" name="dobyear">
            <option value="">Chon nam</option>
            <?php
            $yearCur = date('Y', time()) - 14;
            for ($i = $yearCur;$i >= 1930; $i--) {
                ?>
            <option value="<?=$i?>"><?=$i?></option>
                <?php
            }
            ?>
        </select>
        <div class="cleardiv"></div>
        <label class="contact_form">Địa chỉ</label>
        <input type="text" id="address" name="address" value="<?=$_POST['address']?>" class="contact_input" maxlength="255" />
        <div class="cleardiv"></div>
        <label class="contact_form">Điện thoại</label>
        <input type="text" id="cellphone" name="cellphone" value="<?=$_POST['cellphone']?>"  class="contact_input" maxlength="20" />
        <div class="cleardiv"></div>
        <!--
        <label class="contact_form">Mã xác nhận</label>
        <input type="text" id="captchar" name="" class="contact_input" />(<font color="red">*</font>)<br />
        <div class="cleardiv"></div>
        <div align="center"><strong>ABC</strong><span  class="linkchonma"> <a href="#">Chọn mã khác</a></span></div>
        <div class="cleardiv"></div>
        -->
        <div align="center">
            <input class="btn" name="" type="submit" value="Lưu" /> &nbsp;&nbsp;
            <input class="btn" name="" type="reset" value="Huỷ" /></div>
    </div>
</form>
<div class="cleardiv"></div>
<div class="cleardiv"></div>
<div class="cleardiv"></div>